package cn.etg.facatory.simpleFac;

public class SuShiStore {
    private SuShiFactory suShiFactory;

    public SuShiStore(SuShiFactory suShiFactory){
        this.suShiFactory = suShiFactory;
    }

    public SuShi sellSuShi(String type){
        SuShi suShi = suShiFactory.makeSuShi(type);
        suShiFactory.prepare(suShi);
        suShiFactory.make();
        suShiFactory.finish(suShi);
        return suShi;
    }
}
